package com.mc.bean;
/**
 * @Description 角色（权限）实体类
 * @author zh
 * @date 2023/2/11 11:46
 * @version 1.0
 */
public class Role {

    /**
     * 角色id
     */
    private int rid;

    /**
     * 角色名
     */
    private String rname;

    public Role() {
    }

    public Role(int rid, String rname) {
        this.rid = rid;
        this.rname = rname;
    }

    public Role(int rid) {
        this.rid = rid;
    }

    @Override
    public String toString() {
        return "Role{" +
                "rid=" + rid +
                ", rname='" + rname + '\'' +
                '}';
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }
}
